/*
 * Accel.h
 *
 *  Created on: Jul 1, 2012
 *      Author: jmurray
 */

#ifndef ACCEL_H_
#define ACCEL_H_

#include <Wire.h>
#include <Arduino.h>
#include "../helper/GlobalDefines.h"

class Accel {
public:
	Accel();

	bool setTune();

	// Update current variables
	bool update();

	//Variables

	// G of acceleration in the X axis.
   int16_t x;

   // G of acceleration in the Y axis.
   int16_t y;

   // G of acceleration in the Z axis.
   int16_t z;

   uint16_t temperature;

   // Last time the system was updated in ms.
   unsigned long LastUpdate;

};

#endif /* ACCEL_H_ */
